﻿using TaoSH.AppCode;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


namespace TaoSH.View
{
    public partial class WorkIndex : BasePage
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            //公告
            DataTable dtGG = new ZH_XTGGB().GetEntities(d => DateTime.Now.Date >= d.ZDSTime && DateTime.Now.Date <= d.ZDETime).OrderByDescending(d => d.CreateTime).ToList().ToDataTable();
            dtGG.Columns.Add("URL");
            for (int i = 0; i < dtGG.Rows.Count; i++)
            {
                dtGG.Rows[i]["URL"] = "Comon/CommonView.aspx?FormCode=XTGG&&FormID=" + dtGG.Rows[i]["ID"].ToString();
            }
            RepXTGG.DataSource = dtGG;
            RepXTGG.DataBind();


            //维修单
    

        }


    }
}